  import { createStore } from 'vuex'
  import yao from './yao.js'
  import good from './good.js'
  // import oreder from './oreder.js'

  const store = createStore({
      state: {
		 messageString:[],
		 count:'',
		 zong:'',
		 
	  },
	  modules:{
		  good,
		  yao
	  },
	  
	  mutations:{
	  		  // 点击取消按钮得到的数据
	  		getMsg(state,param,par){
	  			state.messageString=param;
				// static.numcount=par;
	  			console.log(state.messageString)
	  		},
			 setCountInc(state,num){
			            state.count = num;
			        },
			setNumInc(state,ns){
			           state.zong = ns;
			       },
			     
			
		},
		 getters:{
		        count(state,getters){
		            return state.count
		        },
				zong(state,getters){
					return state.zong
				},
		    }
	 
	 
	  
  })
  export default store